<template>
<div class="hello">
  <h1>{{ msg }}</h1>
  <button @click="addOne">add one</button>
  <button @click="minusOne">minus one</button>
</div>
</template>

<script>
  export default{
      data(){
          return{
            msg:'apple',
            price:5
          }
      },
    methods:{
          addOne(){
              this.$store.commit('increment',thid.price)
          },
          minusOne(){
              this.$store.commit('decrement',thid.price)
          }
    }
  }
</script>
